<?php echo $this->Html->css(array(HOST.'/dictionary',HOST.'/form',HOST.'/actions'),null,array('inline'=>false));?>
<?php echo $this->Html->script(array(HOST.'/actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>

<body>
<?php echo $this->Section->main(); ?>

	<div class="container container_3">		
		<div class='grid_1'>
			<?php echo $this->Html->link($this->Html->image(HOST.'/logo.png'),'/',array('escape'=>false))?>
			<?php echo $this->element('menu-left')?>
		</div>		
		<div class='grid_2'>
			<div class="container container_offers_3">
				<div class="offers_grid_3">
					<div class="content">



						<div class="typs form">
						<?php echo $this->Form->create('Typ');?>
							<fieldset>
								<legend><?php __('Dodaj Typ'); ?></legend>
							<?php
								echo $this->Form->input('name');
							?>
							</fieldset>
						<?php echo $this->Form->end(__('Zapisz', true));?>
						</div>
			
			
						<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>		
						<div class="actions main_actions">
							<h3><?php __('Actions'); ?></h3>
							<ul>
								<li><?php echo $this->Html->link(__('Słownik typów', true), array('action' => 'index'));?></li>
								<li><?php echo $this->Html->link(__('Lista ofert', true), array('controller' => 'offers', 'action' => 'index')); ?> </li>
							</ul>
						</div>
						<?php }?>
						
						
					</div>	
				</div>
			</div>
		</div>
		<div class='clear'>&nbsp;</div>
		<?php echo $this->element('footer')?>
	</div>
	<div class='clear'>&nbsp;</div>
</body>			